<div ng-controller="StoreCtrl" ng-init="platformAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/store/list">{{'store'|translate}}</a></li>
        <li class="active"> {{store.store_id?'edit':'add_new'|translate}}</li>
    </ul>
     <div ng-if="platformlists">
     您已经创建的微信平台
        <table class="sui-table table-bordered" >
        <thead>
            <tr>
                 <!-- <th>{{'#'|translate}}</th> -->
                <th>{{'绑定平台open_id'|translate}}</th>
                <th>{{'公司名称'|translate}}</th>
                <th>{{'状态'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr>
               <!--  <td>
                    
                </td> -->
                <td>
                    {{platformlists.open_appid}}
                </td>
                <td>{{platformlists.principal_name}}</td>
                <td> 
                    <span ng-show="open_appid"> 
                        <span ng-show="open_appid == platformlists.open_appid" style="color: red;">已绑定</span>
                        <span ng-show="open_appid !== platformlists.open_appid" style="color: red;">绑定不一致</span>
                    </span>
                    <button ng-click="saveappPlatform(platformlists.open_appid,1)" ng-show="!open_appid" class="sui-btn btn-success" >绑定关系</button>
                </td>
            </tr>
        </tbody>
        </table>
    </div>
    <!-- 当前的小程序信息 
     <div>
        <table class="sui-table table-bordered" >
        <thead>
            <tr>
                 <th>{{'app_id'|translate}}</th>
                <th>{{'小程序名称'|translate}}</th>
                <th>{{''|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    {{wxappDatd.app_id}}
                </td>
                <td>{{wxappDatd.nick_name}}</td>
                <td></td>
            </tr>
        </tbody>
        </table>
    </div> -->
    微信平台绑定关系 
     <div>
        <table class="sui-table table-bordered" >
        <thead>
            <tr>
                 <th>{{'app_id'|translate}}</th>
                <th>{{'小程序名称'|translate}}</th>
                <th>{{'绑定平台id'|translate}}</th>
                <th>{{'关系'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>
                    {{wxappDatd.app_id}}
                </td>
                <td>{{wxappDatd.nick_name}}</td>
                <td>{{open_appid}}</td>
                <td >
                    <span ng-show="open_appid">
                    <button ng-click="rmAppPlatform()" class="sui-btn btn-danger" >解除绑定</button>
                    </span>
                    <span ng-show="!open_appid">
                       <span  style="color: red;">没有绑定</span>
                       <button  ng-show="!platformlists.open_appid" ng-click="saveappPlatform('',1)" class="sui-btn btn-success" >新建绑定关系</button>
                    </span>
                </td>
            </tr>
        </tbody>
        </table>
    </div>
</div>